package top.codedance.iotp.common.constent;

public enum SlaveDefinition {

    UNKNOWN(-1), //未知
    COIL_STATUS(1), //线圈状态
    INPUT_STATUS(2), //输入状态
    HOLDING_REGISTERS(3), //保持寄存器
    INPUT_REGISTERS(4), //输入寄存器
    WRITE_REGISTER(6), //修改单个变量的数值
    WRITE_REGISTERS(16); //修改多个变量的数值

    private int value;

    SlaveDefinition(int v){
        this.value = v;
    }

    public int getValue() {
        return value;
    }
}
